projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e012dfa
)
inspector: avoid a warning on destroy
author
Matthias Clasen
<mclasen@redhat.com>
Thu, 22 May 2014 22:31:11 +0000
(18:31 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Thu, 22 May 2014 22:37:43 +0000
(18:37 -0400)
We are only hiding the window now, so a memory management
error has crept into the destroy path.
gtk/inspector/prop-list.c
patch
|
blob
|
history
diff --git
a/gtk/inspector/prop-list.c
b/gtk/inspector/prop-list.c
index 3ad8befdca85cf0fc96351e00a83b15f2c88f4f5..7eb03751e483ada64ac21d3d351dc3966c27dbd7 100644
(file)
--- a/
gtk/inspector/prop-list.c
+++ b/
gtk/inspector/prop-list.c
@@
-311,7
+311,8
@@
cleanup_object (GtkInspectorPropList *pl)
pl->priv->notify_handler_id = 0;
g_hash_table_remove_all (pl->priv->prop_iters);
- gtk_list_store_clear (pl->priv->model);
+ if (pl->priv->model)
+ gtk_list_store_clear (pl->priv->model);
}
gboolean